#ifndef SCANNER_H
#define SCANNER_H

#include "token.h"
#include "streamrd.h"
#include "lexer.h"
#include "errrptr.h"

namespace cnc {

	namespace compiler {

		class Scanner : public StreamReader, public Lexer<256u>
		{
			ErrorReporter *er_;
		public:
			Scanner();
			void setErrorReporter(ErrorReporter *er);
			const char *getLeader();
			Token getToken();
		};

	} // namespace compiler

} // namespace cnc

#endif
